package com.kj.xuyuan.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kj.xuyuan.R;
import com.kj.xuyuan.model.DynamicDetailsBean;
import com.kj.xuyuan.util.GlideUtils;

import java.util.List;

import androidx.annotation.Nullable;

public class DynamicDetailsLikePeopleAdapter extends BaseQuickAdapter<DynamicDetailsBean.LikeListBean, BaseViewHolder> {

    public DynamicDetailsLikePeopleAdapter() {
        super(R.layout.item_dynamic_like_people);
    }

    @Override
    protected void convert(BaseViewHolder helper, DynamicDetailsBean.LikeListBean item) {
        ImageView ivHead = helper.getView(R.id.iv_head);
        GlideUtils.loadCircleImage(mContext,item.getUser().getAvatar(),ivHead);
    }
}
